<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Pyzhufu extends CI_Controller {

	public function test1()
	{
		$this->load-> model('userpd_model');
		$this->userpd_model->adduser();
	}




	public function index()
	{
		echo "这个页面";
	}




	public function getdata1()	{
		 $this -> output -> enable_profiler(TRUE);
		$sql="select * from userinfo";
		 // $sql="select count(*) num from userinfo";

		$this->load->database();
		$query = $this->db->query($sql)->row_array();

		if ($query) {
			//echo "查询成功";
			var_dump($query);
			//echo mysqli_fetch_array($query);
			//echo $query;
		} else {
			echo "nothing";
		}

	}


}
